package edu.scau.sku.domain;

import java.util.Date;

import java.io.Serializable;

import edu.scau.core.Enum.ColorEnum;
import edu.scau.core.Enum.SizeEnum;
import edu.scau.sku.vo.SkuColorSizeVo;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

/**
 * (SkuColorSize)实体类
 *
 * @author hwh
 * @since 2025-03-22 14:18:18
 */

@Tag(name = "库存详情表", description = " 库存详情domain")
@Data
public class SkuColorSize implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(name = "id", type = "Integer", description = "唯一自增id")
    private Integer id;

    @Schema(name = "skuCode", type = "String", description = "唯一库存编码")
    private String skuCode;

    @Schema(name = "color", type = "String", description = "颜色", implementation = ColorEnum.class)
    private String color;

    @Schema(name = "size", type = "String", description = "尺寸", implementation = SizeEnum.class)
    private String size;

    @Schema(name = "isDeleted", type = "String", description = "释放删除, (0:未删除)")
    private String isDeleted;

    @Schema(name = "createBy", type = "String")
    private String createBy;

    @Schema(name = "createTime", type = "Date")
    private Date createTime;

    @Schema(name = "updateBy", type = "String")
    private String updateBy;

    @Schema(name = "updateTime", type = "Date")
    private Date updateTime;



    public SkuColorSize() {
    }

    public SkuColorSize( Integer id,   String skuCode,   String color,   String size,   String isDeleted,   String createBy,   Date createTime,   String updateBy,   Date updateTime ) {
        this.id = id;
        this.skuCode = skuCode;
        this.color = color;
        this.size = size;
        this.isDeleted = isDeleted;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
    }

    public  SkuColorSize(SkuColorSizeVo skuColorSizeVo){
        this.id=skuColorSizeVo.getId();
        this.skuCode = skuColorSizeVo.getSkuCode();
        this.color = skuColorSizeVo.getColor();
        this.size = skuColorSizeVo.getSize();
    }
}
